package at.fhj.itm10.ticketmaster.dao;

import java.sql.SQLException;
import java.util.List;

import at.fhj.itm10.ticketmaster.entities.Event;

public interface EventDAOInterface {

	public abstract void insert(Event entity) throws DAOException;

	public abstract void update(Event entity) throws DAOException;

	public abstract void delete(Event entity) throws DAOException;

	public abstract Event findById(long id) throws DAOException;

	public abstract List<Event> findAll() throws DAOException;

	public abstract List<Event> findByName(String eventname)
			throws DAOException, SQLException;

	public abstract List<Event> findByCategory(long c_id) throws DAOException,
			SQLException;

	public abstract List<Event> findByDate(String start, String end)
			throws DAOException, SQLException;

	public abstract List<Event> findByAddress(long id) throws SQLException,
			DAOException;

	public abstract List<Event> findTopEvents() throws DAOException;

	public abstract List<Event> findRandomEvents() throws DAOException;

}